package com.ny.demo;

import java.util.Scanner;

public class Test000 {
    public static void main(String[] args) {
        int money=200;
        System.out.println("你消费的金额是"+money);
        System.out.println("请选择你的支付方式：1.银行卡 2.微信 3.支付宝");
        Scanner scanner=new Scanner(System.in);
        switch (scanner.nextInt()){
            case 1:
                System.out.println("扣款的是银行卡");
            break;
            case 2:
                System.out.println("扣款的是微信");
                break;
            case 3:

                Pay alipay=new Alipay();
                alipay.pay(money);
                break;
        }
    }
}
